package com.ych.modules.base.service;

import com.baomidou.mybatisplus.service.IService;
import com.ych.modules.base.dbEntity.RUserInfoSysRoleEntity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/5
 * Time: 16:07
 * Description:
 */
public interface IRUserInfoSysRoleService extends IService<RUserInfoSysRoleEntity> {
    /**
     * 根据用户ID，获取角色ID列表
     */
    List<String> queryRoleIdList(String userId);

    void saveOrUpdate(String userId, List<String> roleIdList);

    /**
     * 根据角色ID数组，批量删除
     */
    void deleteBatch(String[] roleIds);
}
